﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MailListTypeGrid.aspx.cs" Inherits="FantastPlatform.Community.UI.Message.MailListTypeGrid" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
 
    <script type="text/javascript">
        mltg = new FantastPlatform.UI.MailListTypeGrid({
                renderTo: 'mltg_div',
                url: '../Service/MailListType.aspx?Action=Search',
                border: false,
                width: tabs.getInnerWidth() - 5,
                height: tabs.getInnerHeight() - 5,
                tbar: [{
                    text: '添加',
                    iconCls: 'add',
                    tooltip: {
                        text: '添加分组',
                        title: '添加分组',
                        autoHide: true
                    },
                    handler: function () { mltg.onAddMailListTypeGridClick(); }
                }, '-', {
                    text: '编辑',
                    iconCls: 'edit',
                    tooltip: {
                        text: '选择要编辑的记录',
                        title: '编辑通讯录分组',
                        autoHide: true
                    },
                    handler: function () { mltg.onEditMailListTypeGridClick(); }
                }, '-', {
                    text: '删除',
                    iconCls: 'delete',
                    tooltip: {
                        text: '删除选中的记录',
                        title: '删除通讯录分组',
                        autoHide: true
                    },
                    handler: function () { mltg.onDeleteMailListTypeGridClick(); }
                }, '-', {
                    text: '刷新',
                    iconCls: 'updata',
                    tooltip: {
                        text: '重新更新列表内容',
                        title: '列表刷新',
                        autoHide: true
                    },
                    handler: function () { mltg.onUpdataMailListTypeGridClick(); }
                }]
            });
            mltg.addListener('rowdblclick', function () { mltg.onEditMailListTypeGridClick(); });
            mltg.onUpdataMailListTypeGridClick();       
    </script>
</head>
<body>
    <div id="mltg_div">
    </div>
</body>
</html>
